<?php if(!defined('IN_UCHOME')) exit('Access Denied');?><?php subtplcheck('template/default/index|template/default/header|template/default/footer', '1229866970', 'template/default/index');?><?php $_TPL['nosidebar']=1; ?>
<?php if(empty($_SGLOBAL['inajax'])) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php if($_TPL['titles']) { ?><?php if(is_array($_TPL['titles'])) { foreach($_TPL['titles'] as $value) { ?><?php if($value) { ?><?=$value?> - <?php } ?><?php } } ?><?php } ?><?php if($space) { ?><?=$_SN[$space['uid']]?> - <?php } ?><?=$_SCONFIG['sitename']?> - Powered by UCenter Home</title>
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
<script language="javascript" type="text/javascript" src="source/script_menu.js"></script>
<script language="javascript" type="text/javascript" src="source/script_ajax.js"></script>
<script language="javascript" type="text/javascript" src="source/script_face.js"></script>
<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>
<style type="text/css">
@import url(template/<?=$_SC['template']?>/style.css);
<?php if(!empty($_SGLOBAL['space_theme'])) { ?>
@import url(theme/<?=$_SGLOBAL['space_theme']?>/style.css);
<?php } ?>
<?php if(!empty($_SGLOBAL['space_css'])) { ?>
<?=$_SGLOBAL['space_css']?>
<?php } ?>
</style>
<link rel="shortcut icon" href="image/favicon.ico" />
<link rel="edituri" type="application/rsd+xml" title="rsd" href="xmlrpc.php?rsd=<?=$space['uid']?>" />
</head>
<body>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>

<div id="header">
<?php if($_SGLOBAL['ad']['header']) { ?><div id="ad_header"><?php adshow('header'); ?></div><?php } ?>
<div class="headerwarp">
<h1 class="logo"><a href="index.php"><img src="<?=$_SCONFIG['sitelogo']?>" alt="<?=$_SCONFIG['sitename']?>" /></a></h1>
<ul class="menu">
<?php if($_SGLOBAL['supe_uid']) { ?>
<li><a href="space.php?do=home">首页</a></li>
<li><a href="space.php">个人主页</a></li>
<li><a href="space.php?do=friend">好友</a></li>
<li><a href="network.php">随便看看</a></li>

<?php if($_SGLOBAL['appmenu']) { ?>
<?php if($_SGLOBAL['appmenus']) { ?>
<li class="ucmenu" onmouseover="subop(this)" onmouseout="subop(this)" >
<a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a>
<ul id="ucmenu" style="display:none;">
<li><a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a></li>
<?php if(is_array($_SGLOBAL['appmenus'])) { foreach($_SGLOBAL['appmenus'] as $value) { ?>
<li><a href="<?=$value['url']?>" title="<?=$value['name']?>" target="_blank"><?=$value['name']?></a></li>
<?php } } ?>
</ul>
</li>
<?php } else { ?>
<li><a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a></li>
<?php } ?>
<?php } ?>

<li><a href="space.php?do=pm">消息<?php if(!empty($_SGLOBAL['member']['newpm'])) { ?>(新)<?php } ?></a></li>
<?php if(!empty($_SGLOBAL['member']['notenum'])) { ?><li class="notify"><a href="space.php?do=notice"><?=$_SGLOBAL['member']['notenum']?>条新通知</a></li><?php } ?>
<?php } else { ?>
<li><a href="index.php">首页</a></li>
<li><a href="network.php">随便看看</a></li>
<li><a href="help.php">帮助</a></li>
<?php } ?>
</ul>

<div class="nav_account">
<?php if($_SGLOBAL['supe_uid']) { ?>
<a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>" class="login_thumb"><img src="<?php echo avatar($_SGLOBAL[supe_uid],small); ?>" alt="<?=$_SN[$_SGLOBAL['supe_uid']]?>" width="20" height="20" /></a>
<a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>" class="loginName"><?=$_SN[$_SGLOBAL['supe_uid']]?></a>
<?php if($_SN[$_SGLOBAL['supe_uid']]!=$_SGLOBAL['username']) { ?>(<?=$_SGLOBAL['supe_username']?>)<?php } ?>
<br />
<?php if(empty($_SCONFIG['closeinvite'])) { ?><a href="cp.php?ac=invite">邀请</a> | <?php } ?><a href="cp.php">设置</a> | <a href="cp.php?ac=privacy">隐私</a> | <a href="cp.php?ac=common&op=logout">退出</a>
<?php } else { ?>
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>" class="login_thumb"><img src="<?php echo avatar($_SGLOBAL[supe_uid],small); ?>" width="20" height="20" /></a>
欢迎您<br>
<a href="do.php?ac=<?=$_SCONFIG['login_action']?>">登录</a> | 
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>">注册</a>
<?php } ?>
</div>
</div>
</div>

<div id="wrap">

<?php if(empty($_TPL['nosidebar'])) { ?>
<div id="main">

<div id="app_sidebar">
<?php if($_SGLOBAL['supe_uid']) { ?>
<ul class="app_list" id="default_userapp">
<li><img src="image/app/doing.gif"><a href="space.php?do=doing">记录</a></li>
<li><img src="image/app/album.gif"><a href="space.php?do=album">相册</a><em><a href="cp.php?ac=upload">上传</a></em></li>
<li><img src="image/app/blog.gif"><a href="space.php?do=blog">日志</a><em><a href="cp.php?ac=blog">发表</a></em></li>
<li><img src="image/app/mtag.gif"><a href="space.php?do=mtag">群组</a><em><a href="cp.php?ac=thread">话题</a></em></li>
<li><img src="image/app/share.gif"><a href="space.php?do=share">分享</a></li>

<?php if($_SCONFIG['my_status']) { ?>
<?php if(is_array($_SGLOBAL['userapp'])) { foreach($_SGLOBAL['userapp'] as $value) { ?>
<li><img src="http://appicon.manyou.com/icons/<?=$value['appid']?>"><a href="userapp.php?id=<?=$value['appid']?>"><?=$value['appname']?></a></li>
<?php } } ?>
<?php } ?>
</ul>

<?php if($_SCONFIG['my_status']) { ?>
<ul class="app_list" id="my_userapp">
<?php if(is_array($_SGLOBAL['my_menu'])) { foreach($_SGLOBAL['my_menu'] as $value) { ?>
<li id="userapp_li_<?=$value['appid']?>"><img src="http://appicon.manyou.com/icons/<?=$value['appid']?>"><a href="userapp.php?id=<?=$value['appid']?>" title="<?=$value['appname']?>"><?=$value['appname']?></a></li>
<?php } } ?>
</ul>
<?php } ?>

<?php if($_SGLOBAL['my_menu_more']) { ?>
<p class="app_more"><a href="javascript:;" id="a_app_more" onclick="userapp_open();" class="off">展开</a></p>
<?php } ?>

<?php if($_SCONFIG['my_status']) { ?>
<div class="app_m">
<ul>
<li><img src="image/app_add.gif"><a href="cp.php?ac=userapp&my_suffix=%2Fapp%2Flist" class="addApp">添加应用</a></li>
<li><img src="image/app_set.gif"><a href="cp.php?ac=userapp&op=menu" class="myApp">管理应用</a></li>
</ul>
</div>
<?php } ?>

<?php } else { ?>
<div class="bar_text">
<form id="loginform" name="loginform" action="do.php?ac=<?=$_SCONFIG['login_action']?>&ref" method="post">
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" />
<p class="title">登录站点</p>
<p>用户名</p>
<p><input type="text" name="username" id="username" class="t_input" size="15" value="" /></p>
<p>密码</p>
<p><input type="password" name="password" id="password" class="t_input" size="15" value="" /></p>
<p><input type="checkbox" id="cookietime" name="cookietime" value="315360000" checked /><label for="cookietime">记住我</label></p>
<p>
<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit"  />
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>" class="button">注册</a>
</p>
</form>
</div>
<?php } ?>
</div>

<div id="mainarea">
<?php } ?>

<?php } ?>


<div id="index_page">
<div id="wide">
<div class="start">
<h2>欢迎您，已经有 <a href="network.php?ac=space"><span><?=$spacecount?></span> 位成员</a> 入住家园了！</h2>
<ul>
<li>* 在这里，您可以用<a href="help.php?ac=doing">一句话记录</a>生活中的点点滴滴</li>
<li>* 方便快捷地<a href="help.php?ac=blog">发布日志</a>、<a href="help.php?ac=album">上传图片</a></li>
<li>* 与好友们一起<a href="help.php?ac=share">分享信息</a>、<a href="help.php?ac=mtag">讨论感兴趣的话题</a></li>
<li>* 更可轻松快捷了解<a href="help.php?ac=home">好友最新动态</a>，与好友一起玩有趣的小应用</li>
</ul>
<p><a href="do.php?ac=<?=$_SCONFIG['register_action']?>" class="reg_button">立即注册</a></p>
</div>
<div class="m_box">
<div class="left_box">
<div class="showflash">
<script type="text/javascript">
var interval_time = 5;
var focus_width = 338;
var focus_height = 268;
var text_height = 1;
var text_mtop = 0;
var text_lm = 0;
var textmargin = text_mtop+"|"+text_lm;
var textcolor = "#ffffff|#ffffff";
var text_align= 'center'; 
var swf_height = focus_height; 
var text_size = 12;
var borderStyle="1|0xFCF9E6|100";

<?php $linkstr=$imgs=$imglinks=$imgtexts='' ?>
<?php if(is_array($piclist)) { foreach($piclist as $key => $value) { ?>
<?php $title = addslashes(strip_tags($value['title'])); ?>
<?php $imgs.=$linkstr.$value[pic] ?>
<?php $imglinks.=$linkstr."space.php?uid=$value[uid]%26do=album%26picid=$value[picid]" ?>
<?php $imgtexts.=$linkstr.$title ?>
<?php $linkstr='|' ?>
<?php } } ?>

var pics='<?=$imgs?>';
var links='<?=$imglinks?>';
var texts='<?=$imgtexts?>';

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="image/slide.swf"> <param name="quality" value="high"><param name="Wmode" value="transparent">');
document.write('<param name="menu" value="false"><param name="wmode" value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&textmargin='+textmargin+'&textcolor='+textcolor+'&borderstyle='+borderStyle+'&text_align='+text_align+'&interval_time='+interval_time+'&textsize='+text_size+'">');
document.write('<embed src="image/slide.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&textmargin='+textmargin+'&textcolor='+textcolor+'&borderstyle='+borderStyle+'&text_align='+text_align+'&interval_time='+interval_time+'&textsize='+text_size+'" menu="false" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
</script>
</div>
</div>
<div class="right_box">
<ul class="news_list" style="overflow: hidden; height: 277px;">
<?php if(is_array($bloglist)) { foreach($bloglist as $key => $value) { ?>
<li<?php if($key==0) { ?> class="news_title"<?php } ?>><a href="space.php?uid=<?=$value['uid']?>&do=blog&id=<?=$value['blogid']?>"><?=$value['subject']?></a></li>
<?php } } ?>
</ul>
</div>
</div>

<?php if($albumlist) { ?>
<div class="m_box">
<div class="ye_r_t"><div class="ye_l_t"><div class="ye_r_b"><div class="ye_l_b">
<ul class="albs">
<?php if(is_array($albumlist)) { foreach($albumlist as $value) { ?>
<li><a href="space.php?uid=<?=$value['uid']?>&do=album&id=<?=$value['albumid']?>" title="<?=$value['albumname']?>"><img src="<?=$value['pic']?>" alt="<?=$value['albumname']?>"  style="width: 75px;height:75px;" /></a></li>
<?php } } ?>
</ul>
</div></div></div></div>
</div>
<?php } ?>

<div class="m_box">
<div class="left_box">
<?php if($_SCONFIG['my_status']) { ?>
<h3 class="title">好玩的应用</h3>
<ul class="apps">
<?php if(is_array($myapplist)) { foreach($myapplist as $key => $value) { ?>
<?php if($key==0) { ?>
<li class="first">
<a href="userapp.php?id=<?=$value['appid']?>"><img src="http://appicon.manyou.com/logos/<?=$value['appid']?>" alt="<?=$value['appname']?>" /></a>
<h4><a href="userapp.php?id=<?=$value['appid']?>"><?=$value['appname']?></a></h4>
<p>赶快加入，与好友一起玩各种好玩的应用啦</p>
</li>
<?php } else { ?>
<li>
<h4><a href="userapp.php?id=<?=$value['appid']?>"><?=$value['appname']?></a></h4>
<a href="userapp.php?id=<?=$value['appid']?>"><img src="http://appicon.manyou.com/logos/<?=$value['appid']?>" alt="<?=$value['appname']?>" /></a>
</li>
<?php } ?>
<?php } } ?>
</ul>
<?php } else { ?>
<h3 class="title">当前在线的朋友</h3>
<ul class="apps">
<?php if(is_array($onlinelist)) { foreach($onlinelist as $key => $value) { ?>
<?php if($key==0) { ?>
<li class="first">
<a href="space.php?uid=<?=$value['uid']?>"><img src="<?php echo avatar($value[uid],small); ?>" alt="<?=$_SN[$value['uid']]?>" /></a>
<h4><a href="space.php?uid=<?=$value['uid']?>"><?=$_SN[$value['uid']]?></a></h4>
<p>朋友们都在线，您还等什么，赶快加入吧</p>
</li>
<?php } else { ?>
<li>
<h4><a href="space.php?uid=<?=$value['uid']?>"><?=$_SN[$value['uid']]?></a></h4>
<a href="space.php?uid=<?=$value['uid']?>"><img src="<?php echo avatar($value[uid],small); ?>" alt="<?=$_SN[$value['uid']]?>" /></a>
</li>
<?php } ?>
<?php } } ?>
</ul>			
<?php } ?>
</div>

<div class="right_box">
<h3 class="title">群组话题</h3>
<ul class="imtag">
<?php if(is_array($mtaglist)) { foreach($mtaglist as $value) { ?>
<li>
<div class="threadimg60">
<a href="space.php?do=mtag&tagid=<?=$value['tagid']?>"><img style="width: 60px;height:60px;" src="<?=$value['pic']?>"/></a>
</div>
<h4><a href="space.php?do=mtag&tagid=<?=$value['tagid']?>"><?=$value['tagname']?></a></h4>
<ul class="news_list">
<?php if(is_array($threadlist[$value['tagid']])) { foreach($threadlist[$value['tagid']] as $thread) { ?>
<li><a href="space.php?uid=<?=$thread['uid']?>&do=thread&id=<?=$thread['tid']?>"><?=$thread['subject']?></a></li>
<?php } } ?>
</ul>
</li>
<?php } } ?>
</ul>
</div>

</div>
</div>

<div id="narrow">
<div class="login_box">
<h3>请登录</h3>
<form id="loginform" name="loginform" class="login_form" action="do.php?ac=<?=$_SCONFIG['login_action']?>&<?=$url_plus?>&ref" method="post">
<p><label for="username">用户名</label>	<input type="text" name="username" id="username" class="t_input" value="<?=$membername?>" /></p>
<p><label for="password">密　码</label>	<input type="password" name="password" id="password" class="t_input" value="<?=$password?>" /></p>
<p><input type="checkbox" id="cookietime" name="cookietime" value="315360000" tabindex="4"<?=$cookiecheck?> style="margin-bottom: -2px;"><label for="cookietime">下次自动登录</label></p>
<p>
<input type="hidden" name="refer" value="space.php?do=home" />
<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit" tabindex="5" />
<a href="do.php?ac=lostpasswd">忘记密码?</a>
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" />
</p>
</form>
</div>

<div class="searchfirend">
<div class="ye_r_t"><div class="ye_l_t"><div class="ye_r_b"><div class="ye_l_b">
<h3>寻找好友</h3>
<form method="get" action="network.php">
<p>
<input type="radio" name="sex" value="0"> 不限性别
<input type="radio" name="sex" value="1"> 帅哥
<input type="radio" name="sex" value="2" checked> 美女
</p>
<p>
<script type="text/javascript" src="source/script_city.js"></script>
<script type="text/javascript">
<!--
showprovince('resideprovince', 'residecity', '');
showcity('residecity', '');
//-->
</script>	

<input type="hidden" name="ac" value="space" />
<input type="hidden" name="searchmode" value="1" />
<input type="submit" name="findsubmit" value="找人" class="submit" />
</p>
</form>
</div></div></div></div>

</div>

<div class="ifeed">
<h3 class="title">看看大家现在正在做什么…</h3>

<ul class="line_list" id="scrollbody" style="height: 250px; overflow:hidden;">
<?php if(is_array($feedlist)) { foreach($feedlist as $value) { ?>
<li><?=$value['title_template']?></li>
<?php } } ?>
</ul>
<script>startMarquee(250, 60, 0, 'scrollbody');</script>
</div>



<div class="sidebox">
<h3 class="title">热门用户</h3>
<ul class="avatar_list">
<?php if(is_array($spacelist)) { foreach($spacelist as $value) { ?>
<li>
<div class="avatar48"><a href="space.php?uid=<?=$value['uid']?>"><img src="<?php echo avatar($value[uid],small); ?>" alt="<?=$_SN[$value['uid']]?>" /></a></div>
<p><a href="space.php?uid=<?=$value['uid']?>" title="<?=$_SN[$value['uid']]?>"><?=$_SN[$value['uid']]?></a></p>
</li>
<?php } } ?>
</ul>
</div>
</div>
</div>

<?php if(empty($_SGLOBAL['inajax'])) { ?>
<?php if(empty($_TPL['nosidebar'])) { ?>
</div>
<!--/mainarea-->
<div id="bottom"></div>
</div>
<!--/main-->
<?php } ?>

<div id="footer" title="<?php echo debuginfo(); ?>">

<p class="r_option">
<a href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP">TOP</a>
</p>

<?php if($_SGLOBAL['ad']['footer']) { ?>
<p style="padding:5px 0 10px 0;"><?php adshow('footer'); ?></p>
<?php } ?>

<p>
<?=$_SCONFIG['sitename']?> - 
<a href="mailto:<?=$_SCONFIG['adminemail']?>">联系我们</a>
<?php if($_SCONFIG['miibeian']) { ?> - <a  href="http://www.miibeian.gov.cn" target="_blank"><?=$_SCONFIG['miibeian']?></a><?php } ?>
</p>
<p>
Powered by <a  href="http://u.discuz.net" target="_blank"><strong>UCenter Home</strong></a> <span title="<?php echo X_RELEASE; ?>"><?php echo X_VER; ?></span>
<?php if(!empty($_SCONFIG['licensed'])) { ?><a  href="http://license.comsenz.com/?pid=7&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><?php } ?>
&copy; 2001-2008 <a  href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a>
</p>
</div>
</div>
<!--/wrap-->

<?php if($_SGLOBAL['supe_uid']) { ?>
<?php if(!isset($_SCOOKIE['checkpm'])) { ?>
<script language="javascript"  type="text/javascript" src="cp.php?ac=pm&op=checknewpm&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>
<?php if(!isset($_SCOOKIE['synfriend'])) { ?>
<script language="javascript"  type="text/javascript" src="cp.php?ac=friend&op=syn&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>
<?php } ?>
<?php if(!isset($_SCOOKIE['sendmail'])) { ?>
<script language="javascript"  type="text/javascript" src="do.php?ac=sendmail&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>

<?php if($_SGLOBAL['ad']['couplet']) { ?>
<script language="javascript" type="text/javascript" src="source/script_cookie.js"></script>
<script language="javascript" type="text/javascript" src="source/script_couplet.js"></script>
<div id="uch_couplet" style="z-index: 10; position: absolute; display:none">
<div id="couplet_left" style="position: absolute; left: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php adshow('couplet'); ?>
</div>
<div id="couplet_rigth" style="position: absolute; right: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php adshow('couplet'); ?>
</div>
<script type="text/javascript">
lsfloatdiv('uch_couplet', 0, 0, '', 0).floatIt();
</script>
</div>
<?php } ?>

</body>
</html>
<?php } ?>
<?php ob_out();?>